pub trait IngestInfo: Sized {
    type AgenciesFut: Future<Output = String>;
    type AddagencyFut: Future<Output = String>;
    type RemoveagencyFut: Future<Output = String>;
    type GetagencyFut: Future<Output = Vec<u8>>;

    // Required methods
    fn agencies(self, context: Context) -> Self::AgenciesFut;
    fn addagency(
        self,
        context: Context,
        agency: AgencyInfo
    ) -> Self::AddagencyFut;
    fn removeagency(
        self,
        context: Context,
        agency: String
    ) -> Self::RemoveagencyFut;
    fn getagency(
        self,
        context: Context,
        agency: String,
        feedtype: FeedType
    ) -> Self::GetagencyFut;

    // Provided method
    fn serve(self) -> ServeIngestInfo<Self> { ... }
}

Required Associated Types§

source

type AgenciesFut: Future<Output = String>

The response future returned by IngestInfo::agencies.

source

type AddagencyFut: Future<Output = String>

The response future returned by IngestInfo::addagency.

source

type RemoveagencyFut: Future<Output = String>

The response future returned by IngestInfo::removeagency.

source

type GetagencyFut: Future<Output = Vec<u8>>

The response future returned by IngestInfo::getagency.

Required Methods§

source

fn agencies(self, context: Context) -> Self::AgenciesFut

source

fn addagency(self, context: Context, agency: AgencyInfo) -> Self::AddagencyFut

source

fn removeagency(self, context: Context, agency: String) -> Self::RemoveagencyFut

source

fn getagency( self, context: Context, agency: String, feedtype: FeedType ) -> Self::GetagencyFut

Provided Methods§

source

fn serve(self) -> ServeIngestInfo<Self>

Returns a serving function to use with InFlightRequest::execute.

Object Safety§

This trait is not object safe.

Implementors§