pub enum ConnTask {
Direct(Box<DirectEvent>),
RegisterResp {
generation: u64,
protocol_version: u16,
lease_ttl_ms: u64,
direct: Option<DirectCapability>,
},
RegisterFailed {
code: String,
reason: String,
retryable: bool,
},
SubcribeResp {
ack_timeout: Duration,
server_conn_id: RemoteConnId,
server_generation: u64,
need_codec: bool,
is_datagram: bool,
},
SubcribeFailed {
code: String,
reason: String,
retryable: bool,
},
SubcribeRetry {
reason: String,
},
StreamReq {
client_id: RemoteConnId,
server_generation: u64,
},
Retire {
reason: String,
},
StreamAck {
server_id: RemoteConnId,
server_generation: u64,
},
StreamResp {
data_protocol: Option<u16>,
server: ConnLease,
server_generation: u64,
stream: RelayStream,
session: ServerHeaderSession,
},
}Variants§
Direct(Box<DirectEvent>)
Boxed: rare and large, it must not widen every relay mailbox slot.
RegisterResp
RegisterFailed
SubcribeResp
Fields
§
server_conn_id: RemoteConnIdSubcribeFailed
SubcribeRetry
StreamReq
Retire
StreamAck
StreamResp
Fields
§
server: ConnLeaseThe ID of the provider stream socket handed over, not of its control connection; returned if the stream is dropped on the way.
§
stream: RelayStream§
session: ServerHeaderSessionTrait Implementations§
Auto Trait Implementations§
impl !Freeze for ConnTask
impl !RefUnwindSafe for ConnTask
impl !UnwindSafe for ConnTask
impl Forget for ConnTask
impl Move for ConnTask
impl Send for ConnTask
impl Sync for ConnTask
impl Unpin for ConnTask
impl UnsafeUnpin for ConnTask
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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