pub struct GridMessageWrapper {
pub msg: GridMessage,
pub stream: Option<BidirectionalStream>,
}Expand description
스트림의 소유권을 유지하며 채널로 메시지를 보내기 위한 래퍼
Fields§
§msg: GridMessage§stream: Option<BidirectionalStream>Implementations§
Source§impl GridMessageWrapper
impl GridMessageWrapper
Sourcepub async fn send_reply(&mut self, reply: GridMessage) -> DbxResult<()>
pub async fn send_reply(&mut self, reply: GridMessage) -> DbxResult<()>
요청을 보낸 스트림을 통해 응답을 전송합니다.
Auto Trait Implementations§
impl Freeze for GridMessageWrapper
impl !RefUnwindSafe for GridMessageWrapper
impl Send for GridMessageWrapper
impl Sync for GridMessageWrapper
impl Unpin for GridMessageWrapper
impl UnsafeUnpin for GridMessageWrapper
impl !UnwindSafe for GridMessageWrapper
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