Skip to main content

AdminSeamFactory

Trait AdminSeamFactory 

Source
pub trait AdminSeamFactory {
    type Reader<'a>: AdminReadSeam
       where Self: 'a;
    type Mutations<'a>: AdminMutationSeam
       where Self: 'a;

    // Required methods
    fn read_seam<'a>(
        &'a self,
        cfg: &AdminUiConfig,
        record: &SessionRecord,
    ) -> Result<Self::Reader<'a>, UiError>;
    fn mutation_seam<'a>(
        &'a self,
        cfg: &AdminUiConfig,
        record: &SessionRecord,
    ) -> Result<Self::Mutations<'a>, UiError>;
}

Required Associated Types§

Source

type Reader<'a>: AdminReadSeam where Self: 'a

Source

type Mutations<'a>: AdminMutationSeam where Self: 'a

Required Methods§

Source

fn read_seam<'a>( &'a self, cfg: &AdminUiConfig, record: &SessionRecord, ) -> Result<Self::Reader<'a>, UiError>

§Errors

Returns an error when the request is invalid, authentication or session validation fails, or the broker admin operation reports a failure.

Source

fn mutation_seam<'a>( &'a self, cfg: &AdminUiConfig, record: &SessionRecord, ) -> Result<Self::Mutations<'a>, UiError>

§Errors

Returns an error when the request is invalid, authentication or session validation fails, or the broker admin operation reports a failure.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§