pub enum GridMessage {
Replication(ReplicationMessage),
Lock(LockMessage),
Storage(StorageMessage),
Query(QueryMessage),
}Expand description
단일 QUIC/TCP 전송 계층에서 교환되는 최상위 그리드 통신 메시지
Variants§
Replication(ReplicationMessage)
하위 호환 및 기존 마스터-슬레이브 복제용 메시지 래핑
Lock(LockMessage)
Network-Aware Lock Manager 제어 메시지
Storage(StorageMessage)
분산 스토리지(EC 샤드 등) 제어 메시지
Query(QueryMessage)
분산 쿼리(스트리밍, 집계 등) 실행 메시지
Implementations§
Source§impl GridMessage
impl GridMessage
Sourcepub fn is_replication(&self) -> bool
pub fn is_replication(&self) -> bool
이 메시지가 Replication 부류인지 검사합니다.
Sourcepub fn is_storage(&self) -> bool
pub fn is_storage(&self) -> bool
이 메시지가 스토리지 제어 부류인지 검사합니다.
Sourcepub fn deserialize(bytes: &[u8]) -> DbxResult<Self>
pub fn deserialize(bytes: &[u8]) -> DbxResult<Self>
bincode를 사용해 바이트 배열로부터 메시지를 역직렬화합니다.
Trait Implementations§
Source§impl Clone for GridMessage
impl Clone for GridMessage
Source§fn clone(&self) -> GridMessage
fn clone(&self) -> GridMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GridMessage
impl Debug for GridMessage
Source§impl<'de> Deserialize<'de> for GridMessage
impl<'de> Deserialize<'de> for GridMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GridMessage
impl PartialEq for GridMessage
Source§impl Serialize for GridMessage
impl Serialize for GridMessage
impl StructuralPartialEq for GridMessage
Auto Trait Implementations§
impl Freeze for GridMessage
impl RefUnwindSafe for GridMessage
impl Send for GridMessage
impl Sync for GridMessage
impl Unpin for GridMessage
impl UnsafeUnpin for GridMessage
impl UnwindSafe for GridMessage
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> 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