pub enum ServiceMessage {
Welcome {
version: u16,
limits: Limits,
catalog: Vec<String>,
font_roots: Vec<String>,
renderer: Renderer,
},
Buffers {
surface: SurfaceId,
generation: u32,
width: u32,
height: u32,
kind: BufferKind,
planes: Vec<Plane>,
},
FrameReady {
surface: SurfaceId,
sequence: u64,
generation: u32,
buffer: u32,
damage: Vec<[i32; 4]>,
gpu_us: u32,
},
FrameDropped {
sequence: u64,
why: Refusal,
},
Refused {
why: Refusal,
},
}Expand description
What the service sends.
Variants§
Welcome
Answer to the hello: the version both speak, the app’s limits, the catalog files the service has (by their pinned SHA-256), and the font directories it may name other fonts in by path. Only a font in neither is uploaded.
Fields
Buffers
The buffers surface is drawn into from now on, one descriptor each,
in order. A new generation replaces the previous one (a resize).
Fields
§
kind: BufferKindFrameReady
Frame sequence is drawn in buffer: attach it with damage (in
buffer pixels; empty means all of it).
Fields
FrameDropped
Frame sequence was not drawn; the ring space it used is free.
Refused
A request other than a frame was refused. The connection stays up.
Trait Implementations§
Source§impl Clone for ServiceMessage
impl Clone for ServiceMessage
Source§impl Debug for ServiceMessage
impl Debug for ServiceMessage
Source§impl<'de> Deserialize<'de> for ServiceMessage
impl<'de> Deserialize<'de> for ServiceMessage
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 ServiceMessage
impl PartialEq for ServiceMessage
Source§impl Serialize for ServiceMessage
impl Serialize for ServiceMessage
impl StructuralPartialEq for ServiceMessage
Auto Trait Implementations§
impl Forget for ServiceMessage
impl Freeze for ServiceMessagewhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Plane>: Freeze,
PhantomData<[i32; 4]>: Freeze,
impl Move for ServiceMessage
impl RefUnwindSafe for ServiceMessage
impl Send for ServiceMessagewhere
RawVecInner: Send,
impl Sync for ServiceMessagewhere
RawVecInner: Sync,
impl Unpin for ServiceMessage
impl UnsafeUnpin for ServiceMessagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Plane>: UnsafeUnpin,
PhantomData<[i32; 4]>: UnsafeUnpin,
impl UnwindSafe for ServiceMessagewhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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