pub enum Message {
Show 35 variants
AgentHello(AgentInfo),
AgentAck(AgentAck),
EndpointStart(ClientEndpoint),
EndpointAck(ServerEndpoint),
EndpointStop(EndpointStop),
DataChannelHello(DataChannelInfo),
CreateDataChannel(ServerEndpoint),
HeartBeat(HeartBeat),
StartForwardTcp(StartForwardTcp),
StartForwardUdp(StartForwardUdp),
Error(ErrorInfo),
UpgradeAvailable(UpgradeInfo),
Redirect(Redirect),
EndpointRemove(EndpointRemove),
Break(Break),
Stop(Stop),
ConnectState(i32),
Progress(ProgressInfo),
EndpointList(EndpointList),
EndpointListAck(EndpointListAck),
EndpointClear(EndpointClear),
EndpointClearAck(EndpointClearAck),
EndpointStartAll(EndpointStartAll),
EndpointStopAck(EndpointStopAck),
EndpointRemoveAck(EndpointRemoveAck),
DataChannelData(DataChannelData),
DataChannelDataUdp(DataChannelDataUdp),
DataChannelEof(DataChannelEof),
CreateDataChannelWithId(CreateDataChannelWithId),
PerformUpgrade(PerformUpgrade),
DataChannelAck(DataChannelAck),
EndpointStopAll(EndpointStopAll),
EndpointGuidStart(EndpointStart),
EndpointStatus(ServerEndpoint),
EndpointStatusAck(ServerEndpoint),
}
Variants§
AgentHello(AgentInfo)
AgentAck(AgentAck)
EndpointStart(ClientEndpoint)
EndpointAck(ServerEndpoint)
EndpointStop(EndpointStop)
DataChannelHello(DataChannelInfo)
Deprecated
CreateDataChannel(ServerEndpoint)
HeartBeat(HeartBeat)
StartForwardTcp(StartForwardTcp)
Deprecated
StartForwardUdp(StartForwardUdp)
Deprecated
Error(ErrorInfo)
UpgradeAvailable(UpgradeInfo)
Redirect(Redirect)
EndpointRemove(EndpointRemove)
Break(Break)
Stop(Stop)
ConnectState(i32)
Progress(ProgressInfo)
EndpointList(EndpointList)
EndpointListAck(EndpointListAck)
EndpointClear(EndpointClear)
EndpointClearAck(EndpointClearAck)
EndpointStartAll(EndpointStartAll)
EndpointStopAck(EndpointStopAck)
EndpointRemoveAck(EndpointRemoveAck)
DataChannelData(DataChannelData)
DataChannelDataUdp(DataChannelDataUdp)
DataChannelEof(DataChannelEof)
CreateDataChannelWithId(CreateDataChannelWithId)
PerformUpgrade(PerformUpgrade)
DataChannelAck(DataChannelAck)
EndpointStopAll(EndpointStopAll)
EndpointGuidStart(EndpointStart)
EndpointStatus(ServerEndpoint)
EndpointStatusAck(ServerEndpoint)
Implementations§
Source§impl Message
impl Message
Sourcepub fn merge(
field: &mut Option<Message>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Message>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Message, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Message, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Message
impl Serialize for Message
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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