Struct iroh_blobs::get::fsm::AtInitial
source · pub struct AtInitial { /* private fields */ }
Expand description
Initial state of the get response machine
Implementations§
source§impl AtInitial
impl AtInitial
sourcepub fn new(connection: Connection, request: GetRequest) -> Self
pub fn new(connection: Connection, request: GetRequest) -> Self
Create a new get response
connection
is an existing connection
request
is the request to be sent
sourcepub async fn next(self) -> Result<AtConnected, ConnectionError>
pub async fn next(self) -> Result<AtConnected, ConnectionError>
Initiate a new bidi stream to use for the get response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AtInitial
impl RefUnwindSafe for AtInitial
impl Send for AtInitial
impl Sync for AtInitial
impl Unpin for AtInitial
impl UnwindSafe for AtInitial
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more