Trait kactus_gtfs_rt::IngestInfo
source · 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§
sourcetype AgenciesFut: Future<Output = String>
type AgenciesFut: Future<Output = String>
The response future returned by IngestInfo::agencies
.
sourcetype AddagencyFut: Future<Output = String>
type AddagencyFut: Future<Output = String>
The response future returned by IngestInfo::addagency
.
sourcetype RemoveagencyFut: Future<Output = String>
type RemoveagencyFut: Future<Output = String>
The response future returned by IngestInfo::removeagency
.
sourcetype GetagencyFut: Future<Output = Vec<u8>>
type GetagencyFut: Future<Output = Vec<u8>>
The response future returned by IngestInfo::getagency
.
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 Methods§
sourcefn serve(self) -> ServeIngestInfo<Self>
fn serve(self) -> ServeIngestInfo<Self>
Returns a serving function to use with InFlightRequest::execute.
Object Safety§
This trait is not object safe.