pub enum Io {
Write(NodeId, Vec<Message>),
Connect(NodeId, Address),
Disconnect(NodeId, DisconnectReason),
Fetch {
rid: RepoId,
remote: NodeId,
refs_at: Option<Vec<RefsAt>>,
timeout: Duration,
reader_limit: FetchPackSizeLimit,
},
Wakeup(LocalDuration),
}Expand description
I/O operation to execute at the network/wire level.
Variants§
Write(NodeId, Vec<Message>)
There are some messages ready to be sent to a peer.
Connect(NodeId, Address)
Connect to a peer.
Disconnect(NodeId, DisconnectReason)
Disconnect from a peer.
Fetch
Fetch repository data from a peer.
Fields
§
reader_limit: FetchPackSizeLimitLimit the number of bytes fetched.
Wakeup(LocalDuration)
Ask for a wakeup in a specified amount of time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Io
impl !RefUnwindSafe for Io
impl Send for Io
impl Sync for Io
impl Unpin for Io
impl !UnwindSafe for Io
Blanket Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more