pub struct Readonly<T>(/* private fields */);
Expand description
Export the field via Falco tables API with read-only access
This is a wrapper that tells the Rust SDK to export a field to other plugins, but only with read access. Please note that this does not limit write access from within your plugin (bypassing the table API).
This type implements Deref
and DerefMut
, so you do not need any extra
code when accessing the actual data.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Readonly<T>where
T: Freeze,
impl<T> RefUnwindSafe for Readonly<T>where
T: RefUnwindSafe,
impl<T> Send for Readonly<T>where
T: Send,
impl<T> Sync for Readonly<T>where
T: Sync,
impl<T> Unpin for Readonly<T>where
T: Unpin,
impl<T> UnwindSafe for Readonly<T>where
T: 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