pub enum ExecutionContext {
TcpEventCallback(Vec<(TcpEvent, Box<dyn FnOnce(TcpEventData<'_>) -> Box<dyn Iterator<Item = Result<Option<CommandResponse>>>>>)>),
TcpEventSubscriber(TcpEvent, Box<dyn FnMut(TcpEventData<'_>, &mut UnboundedSender<Result<Option<CommandResponse>>>) -> bool>),
Now(Box<dyn FnOnce() -> Box<dyn Iterator<Item = Result<Option<CommandResponse>>>>>),
Ping(Box<dyn FnOnce() -> Result<SocketAddr>>, Box<dyn FnOnce(Option<PongPacket>) -> Result<Option<CommandResponse>> + Send>),
}Variants§
TcpEventCallback(Vec<(TcpEvent, Box<dyn FnOnce(TcpEventData<'_>) -> Box<dyn Iterator<Item = Result<Option<CommandResponse>>>>>)>)
TcpEventSubscriber(TcpEvent, Box<dyn FnMut(TcpEventData<'_>, &mut UnboundedSender<Result<Option<CommandResponse>>>) -> bool>)
Now(Box<dyn FnOnce() -> Box<dyn Iterator<Item = Result<Option<CommandResponse>>>>>)
Ping(Box<dyn FnOnce() -> Result<SocketAddr>>, Box<dyn FnOnce(Option<PongPacket>) -> Result<Option<CommandResponse>> + Send>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionContext
impl !RefUnwindSafe for ExecutionContext
impl !Send for ExecutionContext
impl !Sync for ExecutionContext
impl Unpin for ExecutionContext
impl !UnwindSafe for ExecutionContext
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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