pub enum OutputSignal {
Connect(Box<dyn FnMut(&OutputHandle) + Send + 'static>),
Disconnect(Box<dyn FnMut(&OutputHandle) + Send + 'static>),
Resize(Box<dyn FnMut(&OutputHandle, u32, u32) + Send + 'static>),
Move(Box<dyn FnMut(&OutputHandle, i32, i32) + Send + 'static>),
}
Expand description
Signals relating to output events.
Variants§
Connect(Box<dyn FnMut(&OutputHandle) + Send + 'static>)
An output was connected.
Callbacks receive the newly connected output.
FIXME: This will not run on outputs that have been previously connected. | Tell the dev to fix this in the compositor.
Disconnect(Box<dyn FnMut(&OutputHandle) + Send + 'static>)
An output was connected.
Callbacks receive the disconnected output.
Resize(Box<dyn FnMut(&OutputHandle, u32, u32) + Send + 'static>)
An output’s logical size changed.
Callbacks receive the output and new width and height.
Move(Box<dyn FnMut(&OutputHandle, i32, i32) + Send + 'static>)
An output’s location in the global space changed.
Callbacks receive the output and new x and y.
Auto Trait Implementations§
impl Freeze for OutputSignal
impl !RefUnwindSafe for OutputSignal
impl Send for OutputSignal
impl !Sync for OutputSignal
impl Unpin for OutputSignal
impl !UnwindSafe for OutputSignal
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].