pub enum SendOutcome {
Sent(GnsMessageNumber),
Failed(EResult, GnsNetworkMessage<ToSend>),
Skipped(GnsNetworkMessage<ToSend>),
}Expand description
The result of one message in a GnsSocket::send_messages batch.
Skipped mirrors how GameNetworkingSockets handles a failed batch. Once a
message fails on a connection, every later message in the same batch that
targets that connection is skipped without being attempted, and its result
is reported as 0. A skipped message keeps its payload, so the wrapper
returns it to you, the same way it returns a Failed message.
Variants§
Sent(GnsMessageNumber)
Failed(EResult, GnsNetworkMessage<ToSend>)
Skipped(GnsNetworkMessage<ToSend>)
Auto Trait Implementations§
impl !Send for SendOutcome
impl !Sync for SendOutcome
impl Freeze for SendOutcome
impl RefUnwindSafe for SendOutcome
impl Unpin for SendOutcome
impl UnsafeUnpin for SendOutcome
impl UnwindSafe for SendOutcome
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