Skip to main content

OwnerOf

Trait OwnerOf 

Source
pub trait OwnerOf<A: Area>: Sized + Send {
    // Required method
    fn of(context: &RequestContext<A>) -> Result<Self>;
}

Required Methods§

Source

fn of(context: &RequestContext<A>) -> Result<Self>

NotFound when the area’s guard let nobody in to own the record.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A: Area<Principal = T>, T: 'static> OwnerOf<A> for Id<T>

Source§

fn of(context: &RequestContext<A>) -> Result<Self>

Source§

impl<A: Area> OwnerOf<A> for ()

Source§

fn of(_context: &RequestContext<A>) -> Result<Self>

Implementors§